﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UITwinking : MonoBehaviour {
    private float caltime = 0;
    // Use this for initialization
    void Start()
    {

    }

    // Update is called once per frame
    void Update()
    {
        caltime = caltime + Time.deltaTime;
        if (caltime % 0.5 > 0.25)
        {
            this.GetComponent<CanvasGroup>().alpha = 1;
        }
        else
        {
            this.GetComponent<CanvasGroup>().alpha = 0;
        }
    }
}
